#mainDiv {
    width: 900px;
    margin: 0 auto;
}

#mainDiv>div{
    float: left;
    margin: 15px;
}

